package com.cgw.dmplt.rent.dao.ibatis;

import java.util.List;
import org.springframework.dao.DataAccessException;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import com.cgw.dmplt.rent.domain.PayConfirmFlow;
import com.cgw.dmplt.rent.dao.PayConfirmFlowDao;

/**
 *
 */
public class PayConfirmFlowDaoImpl extends SqlMapClientDaoSupport implements PayConfirmFlowDao
{
    
    /**
     * insert.
     * @param payConfirmFlow payConfirmFlow
     * @return id
     */
    public String insertPayConfirmFlow(PayConfirmFlow payConfirmFlow) {
    	getSqlMapClientTemplate().insert("PayConfirmFlow_insertPayConfirmFlow", payConfirmFlow);
    	return null;
    }

    /**
     * delete.
     * @param payConfirmFlow payConfirmFlow
     */
    public void deletePayConfirmFlow(PayConfirmFlow payConfirmFlow)throws DataAccessException {
        getSqlMapClientTemplate().update("PayConfirmFlow_deletePayConfirmFlow", payConfirmFlow);

    }
    
    /**
     * update.
     * @param payConfirmFlow payConfirmFlow
     */
    public void updatePayConfirmFlow(PayConfirmFlow payConfirmFlow) {

    	getSqlMapClientTemplate().update("PayConfirmFlow_updatePayConfirmFlow", payConfirmFlow);

    }
    
    /**
     * find.
     * @param id id
     * @return payConfirmFlow
     */
    public PayConfirmFlow findPayConfirmFlow(Integer pk) {

        PayConfirmFlow payConfirmFlow = (PayConfirmFlow) getSqlMapClientTemplate().queryForObject("PayConfirmFlow_findPayConfirmFlow", pk);

        return payConfirmFlow;
    }
    
    /**
     * list.
     * @param payConfirmFlow payConfirmFlow
     * @return payConfirmFlow list
     */
    public List listPayConfirmFlow(PayConfirmFlow payConfirmFlow) {

        List list = getSqlMapClientTemplate().queryForList("PayConfirmFlow_listPayConfirmFlow", payConfirmFlow);

        return list;
    }  
    
    /**
     * listCount.
     * @param payConfirmFlow payConfirmFlow
     * @return list count
     */
    public Integer listPayConfirmFlowCount(PayConfirmFlow payConfirmFlow) {
        Integer count = (Integer)getSqlMapClientTemplate().queryForObject("PayConfirmFlow_listPayConfirmFlowCount", payConfirmFlow);
        return count;
    }  
}
